package com.zly.jwt.properties;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

@ConfigurationProperties(prefix = "auth.jwt")
@Configuration
@Validated
@Data
public class JwtProperties {
    @Length(min = 32)
    private String secretKey;
    private Long expiration;
}
